﻿<Window x:Class="WiFiChannelSpread.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:WiFiChannelSpread"
        Title="Wi-Fi Channel Spread"
        Height="400" Width="600" MinWidth="400" MinHeight="300" Background="LightYellow"
        Icon="/WiFiChannelSpread;component/Images/WifiIcon.ico">
    <Grid Name="MainGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Background="Black">
        <local:Map x:Name="BackgroundMap"></local:Map>
        <Image Name="BackgroundImage" Source="Images/ClearBlue.jpg" Stretch="Fill"></Image>
        <Grid Name="ChannelGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,20,0,0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
        </Grid>
        <Grid Name="AccessPointGrid" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
        </Grid>
        <Border Name="ErrorSection" Background="DarkRed" VerticalAlignment="Bottom" MaxHeight="22" Height="0" BorderBrush="White" BorderThickness="2" CornerRadius="4">
            <Border.Effect>
                <DropShadowEffect BlurRadius="5" Color="Black" Direction="90" Opacity="0.5" ShadowDepth="4" />
            </Border.Effect>
            <Grid>
                <Label Name="ErrorLabel" Padding="3,0,0,0" Foreground="White"
                    HorizontalAlignment="Left" VerticalAlignment="Center" Cursor="Hand" MouseDown="ErrorLabel_MouseDown" />
                <Label Name="ErrorClose" Padding="0,0,3,0" Background="DarkRed" Foreground="White" HorizontalAlignment="Right" VerticalAlignment="Center" FontWeight="Bold" Content="close" Cursor="Hand" 
                       MouseDown="ErrorClose_MouseDown"/>
            </Grid>
        </Border>
    </Grid>
</Window>
